// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期：2024-11-12 18:34:15
// 生成路径: api/v1/system/order_types.go
// 生成人：zhou
// desc:订单类型相关参数
// company:云南奇讯科技有限公司
// ==========================================================================

package system

import (
	"github.com/gogf/gf/v2/frame/g"
	commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
	"github.com/tiger1103/gfast/v3/internal/app/system/model"
)

// OrderTypesSearchReq 分页请求参数
type OrderTypesSearchReq struct {
	g.Meta `path:"/list" tags:"订单类型" method:"get" summary:"订单类型列表"`
	commonApi.Author
	model.OrderTypesSearchReq
}

// OrderTypesSearchRes 列表返回结果
type OrderTypesSearchRes struct {
	g.Meta `mime:"application/json"`
	*model.OrderTypesSearchRes
}

// OrderTypesAddReq 添加操作请求参数
type OrderTypesAddReq struct {
	g.Meta `path:"/add" tags:"订单类型" method:"post" summary:"订单类型添加"`
	commonApi.Author
	*model.OrderTypesAddReq
}

// OrderTypesAddRes 添加操作返回结果
type OrderTypesAddRes struct {
	//commonApi.EmptyRes
	//	if id > 0 {
	//	c.JSON(http.StatusOK, ReturnJson{
	//	http.StatusOK,
	//	true,
	//	"添加成功",
	//})
	//} else {
	//	c.JSON(http.StatusOK, ReturnJson{
	//	http.StatusInternalServerError,
	//	false,
	//	resStr,
	//})
	//}
}

// OrderTypesEditReq 修改操作请求参数
type OrderTypesEditReq struct {
	g.Meta `path:"/edit" tags:"订单类型" method:"put" summary:"订单类型修改"`
	commonApi.Author
	*model.OrderTypesEditReq
}

// OrderTypesEditRes 修改操作返回结果
type OrderTypesEditRes struct {
	commonApi.EmptyRes
}

// OrderTypesGetReq 获取一条数据请求
type OrderTypesGetReq struct {
	g.Meta `path:"/get" tags:"订单类型" method:"get" summary:"获取订单类型信息"`
	commonApi.Author
	Id int `p:"id" v:"required#主键必须"` //通过主键获取
}

// OrderTypesGetRes 获取一条数据结果
type OrderTypesGetRes struct {
	g.Meta `mime:"application/json"`
	*model.OrderTypesInfoRes
}

// OrderTypesDeleteReq 删除数据请求
type OrderTypesDeleteReq struct {
	g.Meta `path:"/delete" tags:"订单类型" method:"delete" summary:"删除订单类型"`
	commonApi.Author
	Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}

// OrderTypesDeleteRes 删除数据返回
type OrderTypesDeleteRes struct {
	commonApi.EmptyRes
}
